package Blog.Managerv2;

import java.util.ArrayList;
import java.util.List;


public class User {
	private int ID;
	private String account;
	private List<Blog> blogs=new ArrayList();
	
	public User(int ID,String account){
		this.account=account;
		this.ID=ID;
	}
	public String toString(){
		return this.account;
	}
	public void addBlog(Blog b){
		blogs.add(b);
	}
	public String getAccount(){
		return this.account;
	}
	public List<Blog> getBlogs(){
		return this.blogs;
	}
	public void setAccount(String account){
		this.account=account;
	}
	public int getID(){
		return this.ID;
	}
	public int getSize(){
		return this.blogs.size();
	}
}
